import React from 'react';
// import { Button, List } from 'antd-mobile';
import{BrowserRouter as Router, Route,Link} from 'react-router-dom'
import Home from './pages/Home'
import CityList from './pages/CityList'
function App() {
  return (
    <Router>
      <div className="App">
        {/* 跳转 */}
        <Link to='/home'>home</Link>
        <Link to='/cityList'>cityList</Link>
        {/* 配置路由 */}
     <Route path='/home' component={Home}></Route>
     <Route path='/cityList' component={CityList}></Route>
     
    </div>
    </Router>
  );
}

export default App;
